using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Runtime.Serialization;
using System.Xml;
using System.Xml.Schema;
namespace SLS.Presentation.Data
{
	#region GTDEFDataSet
	[Serializable()]
	[DesignerCategoryAttribute("code")]
	[System.Diagnostics.DebuggerStepThrough()]
	[ToolboxItem(true)]
	public class GTDEFDataSet: DataSet
	{
		private GTDEFDataTable _tableGTDEF;
		
		[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)]
		public GTDEFDataTable GTDEF
		{
			get
			{
				return this._tableGTDEF;
			}
		}
		
		public GTDEFDataSet()
		{
			this.InitClass();
		}
		
		protected override XmlSchema GetSchemaSerializable() 
		{
			MemoryStream stream = new MemoryStream();
			this.WriteXmlSchema(new	XmlTextWriter(stream, null));
			stream.Position = 0;
			return XmlSchema.Read(new XmlTextReader(stream), null);
		}
		
		protected override void	ReadXmlSerializable(XmlReader reader) 
		{
			this.Reset();
			DataSet ds = new DataSet();
			ds.ReadXml(reader);
			if ((ds.Tables["GTDEF"] != null))
			{
				this.Tables.Add(new GTDEFDataTable(ds.Tables["GTDEF"]));
			}
			this.DataSetName = ds.DataSetName;
			this.Prefix = ds.Prefix;
			this.Namespace = ds.Namespace;
			this.Locale = ds.Locale;
			this.CaseSensitive = ds.CaseSensitive;
			this.EnforceConstraints = ds.EnforceConstraints;
			this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
			this.InitVars();
		}
		
		protected GTDEFDataSet(SerializationInfo info, StreamingContext context)
		{
			string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
			if ((strSchema != null))
			{
				DataSet ds = new DataSet();
				ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
				if ((ds.Tables["GTDEF"] != null))
				{
					this.Tables.Add(new GTDEFDataTable(ds.Tables["GTDEF"]));
				}
				this.DataSetName = ds.DataSetName;
				this.Prefix = ds.Prefix;
				this.Namespace = ds.Namespace;
				this.Locale = ds.Locale;
				this.CaseSensitive = ds.CaseSensitive;
				this.EnforceConstraints = ds.EnforceConstraints;
				this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
				this.InitVars();
			}
			else
			{
				this.InitClass();
			}
			this.GetSerializationData(info, context);
		}
		
		private void InitClass()
		{
			this.DataSetName = "GTDEFDataSet";
			_tableGTDEF = new GTDEFDataTable();
			this.Tables.Add(_tableGTDEF);
			this.ExtendedProperties.Add("ObjectName", "GTDEF");
			this.ExtendedProperties.Add("ObjectDescription", "GTDEF");
			this.ExtendedProperties.Add("NameSpace", "");
		}
		
		public override DataSet Clone()
		{
			GTDEFDataSet cln = ((GTDEFDataSet)(base.Clone()));
			cln.InitVars();
			return cln;
		}
		
		internal void InitVars()
		{
			_tableGTDEF = ((GTDEFDataTable)(this.Tables["GTDEF"]));
			if (_tableGTDEF != null)
			{
				_tableGTDEF.InitVars();
			}
		}
		
		protected override bool ShouldSerializeTables()
		{
			return false;
		}
		
		protected override bool ShouldSerializeRelations()
		{
			return false;
		}
		
		private bool ShouldSerializeGTDEF()
		{
			return false;
		}
		
		public delegate void GTDEFRowChangeEventHandler(object sender, GTDEFRowChangeEventArgs e);
		
		[Serializable()]
		public class GTDEFDataTable: DataTable, System.Collections.IEnumerable
		{
			private DataColumn _columnSM;
			private DataColumn _columnGTPRE;
			private DataColumn _columnGTKEY;
			private DataColumn _columnLDES;
			private DataColumn _columnSDES;
			private DataColumn _columnDIRECTKEY;
			private DataColumn _columnKREAL;
			private DataColumn _columnPOS;
			private DataColumn _columnLPOS;
			private DataColumn _columnSUBSTATUS;
			private DataColumn _columnSTATUS;
			private DataColumn _columnVCK1;
			private DataColumn _columnEXPR1;
			private DataColumn _columnFUSER;
			private DataColumn _columnFDATE;
			private DataColumn _columnLUSER;
			private DataColumn _columnLDATE;
			private DataColumn _columnUID;
			
			internal GTDEFDataTable(): base("GTDEF")
			{
				this.InitClass();
			}
			
			protected GTDEFDataTable(SerializationInfo info, StreamingContext context): base(info, context)
			{
				this.InitVars();
			}
			
			internal GTDEFDataTable(DataTable table): base(table.TableName)
			{
				if (table.CaseSensitive != table.DataSet.CaseSensitive)
				{
					this.CaseSensitive = table.CaseSensitive;
				}
				if (table.Locale.ToString() != table.DataSet.Locale.ToString())
				{
					this.Locale = table.Locale;
				}
				if (table.Namespace != table.DataSet.Namespace)
				{
					this.Namespace = table.Namespace;
				}
				this.Prefix = table.Prefix;
				this.MinimumCapacity = table.MinimumCapacity;
				this.DisplayExpression = table.DisplayExpression;
			}
			
			public int Count
			{
				get
				{
					return this.Rows.Count;
				}
			}
			
			public DataColumn SMColumn
			{
				get
				{
					return _columnSM;
				}
			}
			
			public DataColumn GTPREColumn
			{
				get
				{
					return _columnGTPRE;
				}
			}
			
			public DataColumn GTKEYColumn
			{
				get
				{
					return _columnGTKEY;
				}
			}
			
			public DataColumn LDESColumn
			{
				get
				{
					return _columnLDES;
				}
			}
			
			public DataColumn SDESColumn
			{
				get
				{
					return _columnSDES;
				}
			}
			
			public DataColumn DIRECTKEYColumn
			{
				get
				{
					return _columnDIRECTKEY;
				}
			}
			
			public DataColumn KREALColumn
			{
				get
				{
					return _columnKREAL;
				}
			}
			
			public DataColumn POSColumn
			{
				get
				{
					return _columnPOS;
				}
			}
			
			public DataColumn LPOSColumn
			{
				get
				{
					return _columnLPOS;
				}
			}
			
			public DataColumn SUBSTATUSColumn
			{
				get
				{
					return _columnSUBSTATUS;
				}
			}
			
			public DataColumn STATUSColumn
			{
				get
				{
					return _columnSTATUS;
				}
			}
			
			public DataColumn VCK1Column
			{
				get
				{
					return _columnVCK1;
				}
			}
			
			public DataColumn EXPR1Column
			{
				get
				{
					return _columnEXPR1;
				}
			}
			
			public DataColumn FUSERColumn
			{
				get
				{
					return _columnFUSER;
				}
			}
			
			public DataColumn FDATEColumn
			{
				get
				{
					return _columnFDATE;
				}
			}
			
			public DataColumn LUSERColumn
			{
				get
				{
					return _columnLUSER;
				}
			}
			
			public DataColumn LDATEColumn
			{
				get
				{
					return _columnLDATE;
				}
			}
			
			public DataColumn UIDColumn
			{
				get
				{
					return _columnUID;
				}
			}
			
			public GTDEFRow this[int index]
			{
				get
				{
					return ((GTDEFRow)(this.Rows[index]));
				}
			}
			
			public event GTDEFRowChangeEventHandler GTDEFRowChanged;
			public event GTDEFRowChangeEventHandler GTDEFRowChanging;
			public event GTDEFRowChangeEventHandler GTDEFRowDeleted;
			public event GTDEFRowChangeEventHandler GTDEFRowDeleting;
			
			public void AddGTDEFRow(GTDEFRow row)
			{
				this.Rows.Add(row);
			}
			
			public GTDEFRow AddGTDEFRow(
					string sm,
					string gtpre,
					string gtkey,
					string ldes,
					string sdes,
					string directkey,
					string kreal,
					int pos,
					int lpos,
					string substatus,
					string status,
					string vck1,
					string expr1,
					string fuser,
					DateTime fdate,
					string luser,
					DateTime ldate,
					string uid
				)
			{
				GTDEFRow rowGTDEFRow = ((GTDEFRow)(this.NewRow()));
				rowGTDEFRow["SM"] = sm;
				rowGTDEFRow["GTPRE"] = gtpre;
				rowGTDEFRow["GTKEY"] = gtkey;
				rowGTDEFRow["LDES"] = ldes;
				rowGTDEFRow["SDES"] = sdes;
				rowGTDEFRow["DIRECTKEY"] = directkey;
				rowGTDEFRow["KREAL"] = kreal;
				rowGTDEFRow["POS"] = pos;
				rowGTDEFRow["LPOS"] = lpos;
				rowGTDEFRow["SUBSTATUS"] = substatus;
				rowGTDEFRow["STATUS"] = status;
				rowGTDEFRow["VCK1"] = vck1;
				rowGTDEFRow["EXPR1"] = expr1;
				rowGTDEFRow["FUSER"] = fuser;
				rowGTDEFRow["FDATE"] = fdate;
				rowGTDEFRow["LUSER"] = luser;
				rowGTDEFRow["LDATE"] = ldate;
				rowGTDEFRow["UID"] = uid;
				this.Rows.Add(rowGTDEFRow);
				return rowGTDEFRow;
			}
			
			public IEnumerator GetEnumerator()
			{
				return this.Rows.GetEnumerator();
			}
			
			public override DataTable Clone()
			{
				GTDEFDataTable cln = ((GTDEFDataTable)(base.Clone()));
				cln.InitVars();
				return cln;
			}
			
			internal void InitVars()
			{
				_columnSM = this.Columns["SM"];
				_columnGTPRE = this.Columns["GTPRE"];
				_columnGTKEY = this.Columns["GTKEY"];
				_columnLDES = this.Columns["LDES"];
				_columnSDES = this.Columns["SDES"];
				_columnDIRECTKEY = this.Columns["DIRECTKEY"];
				_columnKREAL = this.Columns["KREAL"];
				_columnPOS = this.Columns["POS"];
				_columnLPOS = this.Columns["LPOS"];
				_columnSUBSTATUS = this.Columns["SUBSTATUS"];
				_columnSTATUS = this.Columns["STATUS"];
				_columnVCK1 = this.Columns["VCK1"];
				_columnEXPR1 = this.Columns["EXPR1"];
				_columnFUSER = this.Columns["FUSER"];
				_columnFDATE = this.Columns["FDATE"];
				_columnLUSER = this.Columns["LUSER"];
				_columnLDATE = this.Columns["LDATE"];
				_columnUID = this.Columns["UID"];
			}
			
			public void InitClass()
			{
				_columnSM = new DataColumn("SM", typeof(string), "", MappingType.Element);
				_columnSM.AllowDBNull = false;
				_columnSM.Caption = "Sm";
				_columnSM.MaxLength = 5;
				_columnSM.Unique = false;
				_columnSM.DefaultValue = Convert.DBNull;
				_columnSM.ExtendedProperties.Add("IsKey", "true");
				_columnSM.ExtendedProperties.Add("ReadOnly", "false");
				_columnSM.ExtendedProperties.Add("Description", "Sm");
				_columnSM.ExtendedProperties.Add("Length", "5");
				_columnSM.ExtendedProperties.Add("Decimals", "0");
				_columnSM.ExtendedProperties.Add("AllowDBNulls", "false");
				this.Columns.Add(_columnSM);
				
				_columnGTPRE = new DataColumn("GTPRE", typeof(string), "", MappingType.Element);
				_columnGTPRE.AllowDBNull = false;
				_columnGTPRE.Caption = "Gtpre";
				_columnGTPRE.MaxLength = 2;
				_columnGTPRE.Unique = false;
				_columnGTPRE.DefaultValue = Convert.DBNull;
				_columnGTPRE.ExtendedProperties.Add("IsKey", "true");
				_columnGTPRE.ExtendedProperties.Add("ReadOnly", "false");
				_columnGTPRE.ExtendedProperties.Add("Description", "Gtpre");
				_columnGTPRE.ExtendedProperties.Add("Length", "2");
				_columnGTPRE.ExtendedProperties.Add("Decimals", "0");
				_columnGTPRE.ExtendedProperties.Add("AllowDBNulls", "false");
				this.Columns.Add(_columnGTPRE);
				
				_columnGTKEY = new DataColumn("GTKEY", typeof(string), "", MappingType.Element);
				_columnGTKEY.AllowDBNull = false;
				_columnGTKEY.Caption = "Gtkey";
				_columnGTKEY.MaxLength = 10;
				_columnGTKEY.Unique = false;
				_columnGTKEY.DefaultValue = Convert.DBNull;
				_columnGTKEY.ExtendedProperties.Add("IsKey", "true");
				_columnGTKEY.ExtendedProperties.Add("ReadOnly", "false");
				_columnGTKEY.ExtendedProperties.Add("Description", "Gtkey");
				_columnGTKEY.ExtendedProperties.Add("Length", "10");
				_columnGTKEY.ExtendedProperties.Add("Decimals", "0");
				_columnGTKEY.ExtendedProperties.Add("AllowDBNulls", "false");
				this.Columns.Add(_columnGTKEY);
				
				_columnLDES = new DataColumn("LDES", typeof(string), "", MappingType.Element);
				_columnLDES.AllowDBNull = true;
				_columnLDES.Caption = "Ldes";
				_columnLDES.MaxLength = 60;
				_columnLDES.Unique = false;
				_columnLDES.DefaultValue = Convert.DBNull;
				_columnLDES.ExtendedProperties.Add("IsKey", "false");
				_columnLDES.ExtendedProperties.Add("ReadOnly", "false");
				_columnLDES.ExtendedProperties.Add("Description", "Ldes");
				_columnLDES.ExtendedProperties.Add("Length", "60");
				_columnLDES.ExtendedProperties.Add("Decimals", "0");
				_columnLDES.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnLDES);
				
				_columnSDES = new DataColumn("SDES", typeof(string), "", MappingType.Element);
				_columnSDES.AllowDBNull = true;
				_columnSDES.Caption = "Sdes";
				_columnSDES.MaxLength = 20;
				_columnSDES.Unique = false;
				_columnSDES.DefaultValue = Convert.DBNull;
				_columnSDES.ExtendedProperties.Add("IsKey", "false");
				_columnSDES.ExtendedProperties.Add("ReadOnly", "false");
				_columnSDES.ExtendedProperties.Add("Description", "Sdes");
				_columnSDES.ExtendedProperties.Add("Length", "20");
				_columnSDES.ExtendedProperties.Add("Decimals", "0");
				_columnSDES.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnSDES);
				
				_columnDIRECTKEY = new DataColumn("DIRECTKEY", typeof(string), "", MappingType.Element);
				_columnDIRECTKEY.AllowDBNull = true;
				_columnDIRECTKEY.Caption = "Directkey";
				_columnDIRECTKEY.MaxLength = 3;
				_columnDIRECTKEY.Unique = false;
				_columnDIRECTKEY.DefaultValue = Convert.DBNull;
				_columnDIRECTKEY.ExtendedProperties.Add("IsKey", "false");
				_columnDIRECTKEY.ExtendedProperties.Add("ReadOnly", "false");
				_columnDIRECTKEY.ExtendedProperties.Add("Description", "Directkey");
				_columnDIRECTKEY.ExtendedProperties.Add("Length", "3");
				_columnDIRECTKEY.ExtendedProperties.Add("Decimals", "0");
				_columnDIRECTKEY.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnDIRECTKEY);
				
				_columnKREAL = new DataColumn("KREAL", typeof(string), "", MappingType.Element);
				_columnKREAL.AllowDBNull = true;
				_columnKREAL.Caption = "Kreal";
				_columnKREAL.MaxLength = 100;
				_columnKREAL.Unique = false;
				_columnKREAL.DefaultValue = Convert.DBNull;
				_columnKREAL.ExtendedProperties.Add("IsKey", "false");
				_columnKREAL.ExtendedProperties.Add("ReadOnly", "false");
				_columnKREAL.ExtendedProperties.Add("Description", "Kreal");
				_columnKREAL.ExtendedProperties.Add("Length", "100");
				_columnKREAL.ExtendedProperties.Add("Decimals", "0");
				_columnKREAL.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnKREAL);
				
				_columnPOS = new DataColumn("POS", typeof(int), "", MappingType.Element);
				_columnPOS.AllowDBNull = true;
				_columnPOS.Caption = "Pos";
				_columnPOS.Unique = false;
				_columnPOS.DefaultValue = Convert.DBNull;
				_columnPOS.ExtendedProperties.Add("IsKey", "false");
				_columnPOS.ExtendedProperties.Add("ReadOnly", "false");
				_columnPOS.ExtendedProperties.Add("Description", "Pos");
				_columnPOS.ExtendedProperties.Add("Decimals", "0");
				_columnPOS.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnPOS);
				
				_columnLPOS = new DataColumn("LPOS", typeof(int), "", MappingType.Element);
				_columnLPOS.AllowDBNull = true;
				_columnLPOS.Caption = "Lpos";
				_columnLPOS.Unique = false;
				_columnLPOS.DefaultValue = Convert.DBNull;
				_columnLPOS.ExtendedProperties.Add("IsKey", "false");
				_columnLPOS.ExtendedProperties.Add("ReadOnly", "false");
				_columnLPOS.ExtendedProperties.Add("Description", "Lpos");
				_columnLPOS.ExtendedProperties.Add("Decimals", "0");
				_columnLPOS.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnLPOS);
				
				_columnSUBSTATUS = new DataColumn("SUBSTATUS", typeof(string), "", MappingType.Element);
				_columnSUBSTATUS.AllowDBNull = true;
				_columnSUBSTATUS.Caption = "Substatus";
				_columnSUBSTATUS.MaxLength = -1;
				_columnSUBSTATUS.Unique = false;
				_columnSUBSTATUS.DefaultValue = Convert.DBNull;
				_columnSUBSTATUS.ExtendedProperties.Add("IsKey", "false");
				_columnSUBSTATUS.ExtendedProperties.Add("ReadOnly", "false");
				_columnSUBSTATUS.ExtendedProperties.Add("Description", "Substatus");
				_columnSUBSTATUS.ExtendedProperties.Add("Length", "-1");
				_columnSUBSTATUS.ExtendedProperties.Add("Decimals", "0");
				_columnSUBSTATUS.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnSUBSTATUS);
				
				_columnSTATUS = new DataColumn("STATUS", typeof(string), "", MappingType.Element);
				_columnSTATUS.AllowDBNull = true;
				_columnSTATUS.Caption = "Status";
				_columnSTATUS.MaxLength = 50;
				_columnSTATUS.Unique = false;
				_columnSTATUS.DefaultValue = Convert.DBNull;
				_columnSTATUS.ExtendedProperties.Add("IsKey", "false");
				_columnSTATUS.ExtendedProperties.Add("ReadOnly", "false");
				_columnSTATUS.ExtendedProperties.Add("Description", "Status");
				_columnSTATUS.ExtendedProperties.Add("Length", "50");
				_columnSTATUS.ExtendedProperties.Add("Decimals", "0");
				_columnSTATUS.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnSTATUS);
				
				_columnVCK1 = new DataColumn("VCK1", typeof(string), "", MappingType.Element);
				_columnVCK1.AllowDBNull = true;
				_columnVCK1.Caption = "Vck 1";
				_columnVCK1.MaxLength = 50;
				_columnVCK1.Unique = false;
				_columnVCK1.DefaultValue = Convert.DBNull;
				_columnVCK1.ExtendedProperties.Add("IsKey", "false");
				_columnVCK1.ExtendedProperties.Add("ReadOnly", "false");
				_columnVCK1.ExtendedProperties.Add("Description", "Vck 1");
				_columnVCK1.ExtendedProperties.Add("Length", "50");
				_columnVCK1.ExtendedProperties.Add("Decimals", "0");
				_columnVCK1.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnVCK1);
				
				_columnEXPR1 = new DataColumn("EXPR1", typeof(string), "", MappingType.Element);
				_columnEXPR1.AllowDBNull = true;
				_columnEXPR1.Caption = "Expr 1";
				_columnEXPR1.MaxLength = 100;
				_columnEXPR1.Unique = false;
				_columnEXPR1.DefaultValue = Convert.DBNull;
				_columnEXPR1.ExtendedProperties.Add("IsKey", "false");
				_columnEXPR1.ExtendedProperties.Add("ReadOnly", "false");
				_columnEXPR1.ExtendedProperties.Add("Description", "Expr 1");
				_columnEXPR1.ExtendedProperties.Add("Length", "100");
				_columnEXPR1.ExtendedProperties.Add("Decimals", "0");
				_columnEXPR1.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnEXPR1);
				
				_columnFUSER = new DataColumn("FUSER", typeof(string), "", MappingType.Element);
				_columnFUSER.AllowDBNull = true;
				_columnFUSER.Caption = "Fuser";
				_columnFUSER.MaxLength = 10;
				_columnFUSER.Unique = false;
				_columnFUSER.DefaultValue = Convert.DBNull;
				_columnFUSER.ExtendedProperties.Add("IsKey", "false");
				_columnFUSER.ExtendedProperties.Add("ReadOnly", "false");
				_columnFUSER.ExtendedProperties.Add("Description", "Fuser");
				_columnFUSER.ExtendedProperties.Add("Length", "10");
				_columnFUSER.ExtendedProperties.Add("Decimals", "0");
				_columnFUSER.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnFUSER);
				
				_columnFDATE = new DataColumn("FDATE", typeof(DateTime), "", MappingType.Element);
				_columnFDATE.AllowDBNull = true;
				_columnFDATE.Caption = "Fdate";
				_columnFDATE.Unique = false;
				_columnFDATE.DefaultValue = Convert.DBNull;
				_columnFDATE.ExtendedProperties.Add("IsKey", "false");
				_columnFDATE.ExtendedProperties.Add("ReadOnly", "false");
				_columnFDATE.ExtendedProperties.Add("Description", "Fdate");
				_columnFDATE.ExtendedProperties.Add("Decimals", "0");
				_columnFDATE.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnFDATE);
				
				_columnLUSER = new DataColumn("LUSER", typeof(string), "", MappingType.Element);
				_columnLUSER.AllowDBNull = true;
				_columnLUSER.Caption = "Luser";
				_columnLUSER.MaxLength = 10;
				_columnLUSER.Unique = false;
				_columnLUSER.DefaultValue = Convert.DBNull;
				_columnLUSER.ExtendedProperties.Add("IsKey", "false");
				_columnLUSER.ExtendedProperties.Add("ReadOnly", "false");
				_columnLUSER.ExtendedProperties.Add("Description", "Luser");
				_columnLUSER.ExtendedProperties.Add("Length", "10");
				_columnLUSER.ExtendedProperties.Add("Decimals", "0");
				_columnLUSER.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnLUSER);
				
				_columnLDATE = new DataColumn("LDATE", typeof(DateTime), "", MappingType.Element);
				_columnLDATE.AllowDBNull = true;
				_columnLDATE.Caption = "Ldate";
				_columnLDATE.Unique = false;
				_columnLDATE.DefaultValue = Convert.DBNull;
				_columnLDATE.ExtendedProperties.Add("IsKey", "false");
				_columnLDATE.ExtendedProperties.Add("ReadOnly", "false");
				_columnLDATE.ExtendedProperties.Add("Description", "Ldate");
				_columnLDATE.ExtendedProperties.Add("Decimals", "0");
				_columnLDATE.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnLDATE);
				
				_columnUID = new DataColumn("UID", typeof(string), "", MappingType.Element);
				_columnUID.AllowDBNull = true;
				_columnUID.Caption = "Uid";
				_columnUID.MaxLength = 60;
				_columnUID.Unique = false;
				_columnUID.DefaultValue = Convert.DBNull;
				_columnUID.ExtendedProperties.Add("IsKey", "false");
				_columnUID.ExtendedProperties.Add("ReadOnly", "false");
				_columnUID.ExtendedProperties.Add("Description", "Uid");
				_columnUID.ExtendedProperties.Add("Length", "60");
				_columnUID.ExtendedProperties.Add("Decimals", "0");
				_columnUID.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnUID);
				
			}
			
			public GTDEFRow NewGTDEFRow()
			{
				GTDEFRow rowGTDEFRow = ((GTDEFRow)(this.NewRow()));
				return rowGTDEFRow;
			}
			
			protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
			{
				return new GTDEFRow(builder);
			}
			
			protected override Type GetRowType()
			{
				return typeof(GTDEFRow);
			}
			
			protected override void OnRowChanged(DataRowChangeEventArgs e)
			{
				base.OnRowChanged(e);
				if (this.GTDEFRowChanged != null)
				{
					this.GTDEFRowChanged(this, new GTDEFRowChangeEventArgs(((GTDEFRow)(e.Row)), e.Action));
				}
			}
			
			protected override void OnRowChanging(DataRowChangeEventArgs e)
			{
				base.OnRowChanging(e);
				if (this.GTDEFRowChanging != null)
				{
					this.GTDEFRowChanging(this, new GTDEFRowChangeEventArgs(((GTDEFRow)(e.Row)), e.Action));
				}
			}
			
			protected override void OnRowDeleted(DataRowChangeEventArgs e)
			{
				base.OnRowDeleted(e);
				if (this.GTDEFRowDeleted != null)
				{
					this.GTDEFRowDeleted(this, new GTDEFRowChangeEventArgs(((GTDEFRow)(e.Row)), e.Action));
				}
			}
			
			protected override void OnRowDeleting(DataRowChangeEventArgs e)
			{
				base.OnRowDeleting(e);
				if (this.GTDEFRowDeleting != null)
				{
					this.GTDEFRowDeleting(this, new GTDEFRowChangeEventArgs(((GTDEFRow)(e.Row)), e.Action));
				}
			}
			
			public void RemoveGTDEFRow(GTDEFRow row)
			{
				this.Rows.Remove(row);
			}
		}
		
		public class GTDEFRow: DataRow
		{
			private GTDEFDataTable _tableGTDEF;
			
			internal GTDEFRow(DataRowBuilder rb): base(rb)
			{
				_tableGTDEF = ((GTDEFDataTable)(this.Table));
			}
			
			/// <summary>
			/// Gets or sets the value of SM property
			/// </summary>
			public string SM
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEF.SMColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value SM because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.SMColumn] = value;
				}
			}
			
			public bool IsSMNull()
			{
				return this.IsNull(_tableGTDEF.SMColumn);
			}
			
			public void SetSMNull()
			{
				this[_tableGTDEF.SMColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of GTPRE property
			/// </summary>
			public string GTPRE
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEF.GTPREColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value GTPRE because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.GTPREColumn] = value;
				}
			}
			
			public bool IsGTPRENull()
			{
				return this.IsNull(_tableGTDEF.GTPREColumn);
			}
			
			public void SetGTPRENull()
			{
				this[_tableGTDEF.GTPREColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of GTKEY property
			/// </summary>
			public string GTKEY
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEF.GTKEYColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value GTKEY because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.GTKEYColumn] = value;
				}
			}
			
			public bool IsGTKEYNull()
			{
				return this.IsNull(_tableGTDEF.GTKEYColumn);
			}
			
			public void SetGTKEYNull()
			{
				this[_tableGTDEF.GTKEYColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of LDES property
			/// </summary>
			public string LDES
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEF.LDESColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value LDES because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.LDESColumn] = value;
				}
			}
			
			public bool IsLDESNull()
			{
				return this.IsNull(_tableGTDEF.LDESColumn);
			}
			
			public void SetLDESNull()
			{
				this[_tableGTDEF.LDESColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of SDES property
			/// </summary>
			public string SDES
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEF.SDESColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value SDES because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.SDESColumn] = value;
				}
			}
			
			public bool IsSDESNull()
			{
				return this.IsNull(_tableGTDEF.SDESColumn);
			}
			
			public void SetSDESNull()
			{
				this[_tableGTDEF.SDESColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of DIRECTKEY property
			/// </summary>
			public string DIRECTKEY
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEF.DIRECTKEYColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value DIRECTKEY because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.DIRECTKEYColumn] = value;
				}
			}
			
			public bool IsDIRECTKEYNull()
			{
				return this.IsNull(_tableGTDEF.DIRECTKEYColumn);
			}
			
			public void SetDIRECTKEYNull()
			{
				this[_tableGTDEF.DIRECTKEYColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of KREAL property
			/// </summary>
			public string KREAL
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEF.KREALColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value KREAL because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.KREALColumn] = value;
				}
			}
			
			public bool IsKREALNull()
			{
				return this.IsNull(_tableGTDEF.KREALColumn);
			}
			
			public void SetKREALNull()
			{
				this[_tableGTDEF.KREALColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of POS property
			/// </summary>
			public int POS
			{
				get
				{
					try
					{
						return ((int)(this[_tableGTDEF.POSColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value POS because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.POSColumn] = value;
				}
			}
			
			public bool IsPOSNull()
			{
				return this.IsNull(_tableGTDEF.POSColumn);
			}
			
			public void SetPOSNull()
			{
				this[_tableGTDEF.POSColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of LPOS property
			/// </summary>
			public int LPOS
			{
				get
				{
					try
					{
						return ((int)(this[_tableGTDEF.LPOSColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value LPOS because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.LPOSColumn] = value;
				}
			}
			
			public bool IsLPOSNull()
			{
				return this.IsNull(_tableGTDEF.LPOSColumn);
			}
			
			public void SetLPOSNull()
			{
				this[_tableGTDEF.LPOSColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of SUBSTATUS property
			/// </summary>
			public string SUBSTATUS
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEF.SUBSTATUSColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value SUBSTATUS because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.SUBSTATUSColumn] = value;
				}
			}
			
			public bool IsSUBSTATUSNull()
			{
				return this.IsNull(_tableGTDEF.SUBSTATUSColumn);
			}
			
			public void SetSUBSTATUSNull()
			{
				this[_tableGTDEF.SUBSTATUSColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of STATUS property
			/// </summary>
			public string STATUS
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEF.STATUSColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value STATUS because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.STATUSColumn] = value;
				}
			}
			
			public bool IsSTATUSNull()
			{
				return this.IsNull(_tableGTDEF.STATUSColumn);
			}
			
			public void SetSTATUSNull()
			{
				this[_tableGTDEF.STATUSColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of VCK1 property
			/// </summary>
			public string VCK1
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEF.VCK1Column]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value VCK1 because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.VCK1Column] = value;
				}
			}
			
			public bool IsVCK1Null()
			{
				return this.IsNull(_tableGTDEF.VCK1Column);
			}
			
			public void SetVCK1Null()
			{
				this[_tableGTDEF.VCK1Column] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of EXPR1 property
			/// </summary>
			public string EXPR1
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEF.EXPR1Column]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value EXPR1 because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.EXPR1Column] = value;
				}
			}
			
			public bool IsEXPR1Null()
			{
				return this.IsNull(_tableGTDEF.EXPR1Column);
			}
			
			public void SetEXPR1Null()
			{
				this[_tableGTDEF.EXPR1Column] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of FUSER property
			/// </summary>
			public string FUSER
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEF.FUSERColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value FUSER because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.FUSERColumn] = value;
				}
			}
			
			public bool IsFUSERNull()
			{
				return this.IsNull(_tableGTDEF.FUSERColumn);
			}
			
			public void SetFUSERNull()
			{
				this[_tableGTDEF.FUSERColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of FDATE property
			/// </summary>
			public DateTime FDATE
			{
				get
				{
					try
					{
						return ((DateTime)(this[_tableGTDEF.FDATEColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value FDATE because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.FDATEColumn] = value;
				}
			}
			
			public bool IsFDATENull()
			{
				return this.IsNull(_tableGTDEF.FDATEColumn);
			}
			
			public void SetFDATENull()
			{
				this[_tableGTDEF.FDATEColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of LUSER property
			/// </summary>
			public string LUSER
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEF.LUSERColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value LUSER because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.LUSERColumn] = value;
				}
			}
			
			public bool IsLUSERNull()
			{
				return this.IsNull(_tableGTDEF.LUSERColumn);
			}
			
			public void SetLUSERNull()
			{
				this[_tableGTDEF.LUSERColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of LDATE property
			/// </summary>
			public DateTime LDATE
			{
				get
				{
					try
					{
						return ((DateTime)(this[_tableGTDEF.LDATEColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value LDATE because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.LDATEColumn] = value;
				}
			}
			
			public bool IsLDATENull()
			{
				return this.IsNull(_tableGTDEF.LDATEColumn);
			}
			
			public void SetLDATENull()
			{
				this[_tableGTDEF.LDATEColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of UID property
			/// </summary>
			public string UID
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEF.UIDColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value UID because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEF.UIDColumn] = value;
				}
			}
			
			public bool IsUIDNull()
			{
				return this.IsNull(_tableGTDEF.UIDColumn);
			}
			
			public void SetUIDNull()
			{
				this[_tableGTDEF.UIDColumn] = Convert.DBNull;
			}
			
		}
		
		public class GTDEFRowChangeEventArgs: EventArgs
		{
			private GTDEFRow _eventRow;
			private System.Data.DataRowAction _eventAction;
			
			public GTDEFRowChangeEventArgs(GTDEFRow row, DataRowAction action)
			{
				_eventRow = row;
				_eventAction = action;
			}
			
			public GTDEFRow Row
			{
				get
				{
					return _eventRow;
				}
			}
			
			public DataRowAction Action
			{
				get
				{
					return _eventAction;
				}
			}
		}
	}
	#endregion
    #region GTDEFQueryCondDataSet
	[Serializable()]
	[DesignerCategoryAttribute("code")]
	[System.Diagnostics.DebuggerStepThrough()]
	[ToolboxItem(true)]
	public class GTDEFQueryCondDataSet: DataSet
	{
		private GTDEFQueryCondDataTable _tableGTDEFQueryCond;
		
		[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)]
		public GTDEFQueryCondDataTable GTDEFQueryCond
		{
			get
			{
				return this._tableGTDEFQueryCond;
			}
		}
		
		public GTDEFQueryCondDataSet()
		{
			this.InitClass();
		}
		
		protected override XmlSchema GetSchemaSerializable() 
		{
			MemoryStream stream = new MemoryStream();
			this.WriteXmlSchema(new	XmlTextWriter(stream, null));
			stream.Position = 0;
			return XmlSchema.Read(new XmlTextReader(stream), null);
		}
		
		protected override void	ReadXmlSerializable(XmlReader reader) 
		{
			this.Reset();
			DataSet ds = new DataSet();
			ds.ReadXml(reader);
			if ((ds.Tables["GTDEFQueryCond"] != null))
			{
				this.Tables.Add(new GTDEFQueryCondDataTable(ds.Tables["GTDEFQueryCond"]));
			}
			this.DataSetName = ds.DataSetName;
			this.Prefix = ds.Prefix;
			this.Namespace = ds.Namespace;
			this.Locale = ds.Locale;
			this.CaseSensitive = ds.CaseSensitive;
			this.EnforceConstraints = ds.EnforceConstraints;
			this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
			this.InitVars();
		}
		
		protected GTDEFQueryCondDataSet(SerializationInfo info, StreamingContext context)
		{
			string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
			if ((strSchema != null))
			{
				DataSet ds = new DataSet();
				ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
				if ((ds.Tables["GTDEFQueryCond"] != null))
				{
					this.Tables.Add(new GTDEFQueryCondDataTable(ds.Tables["GTDEFQueryCond"]));
				}
				this.DataSetName = ds.DataSetName;
				this.Prefix = ds.Prefix;
				this.Namespace = ds.Namespace;
				this.Locale = ds.Locale;
				this.CaseSensitive = ds.CaseSensitive;
				this.EnforceConstraints = ds.EnforceConstraints;
				this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
				this.InitVars();
			}
			else
			{
				this.InitClass();
			}
			this.GetSerializationData(info, context);
		}
		
		private void InitClass()
		{
			this.DataSetName = "GTDEFQueryCondDataSet";
			_tableGTDEFQueryCond = new GTDEFQueryCondDataTable();
			this.Tables.Add(_tableGTDEFQueryCond);
			this.ExtendedProperties.Add("ObjectName", "GTDEFQueryCond");
			this.ExtendedProperties.Add("ObjectDescription", "GTDEFQueryCond");
			this.ExtendedProperties.Add("NameSpace", "");
		}
		
		public override DataSet Clone()
		{
			GTDEFQueryCondDataSet cln = ((GTDEFQueryCondDataSet)(base.Clone()));
			cln.InitVars();
			return cln;
		}
		
		internal void InitVars()
		{
			_tableGTDEFQueryCond = ((GTDEFQueryCondDataTable)(this.Tables["GTDEFQueryCond"]));
			if (_tableGTDEFQueryCond != null)
			{
				_tableGTDEFQueryCond.InitVars();
			}
		}
		
		protected override bool ShouldSerializeTables()
		{
			return false;
		}
		
		protected override bool ShouldSerializeRelations()
		{
			return false;
		}
		
		private bool ShouldSerializeGTDEFQueryCond()
		{
			return false;
		}
		
		public delegate void GTDEFQueryCondRowChangeEventHandler(object sender, GTDEFQueryCondRowChangeEventArgs e);
		
		[Serializable()]
		public class GTDEFQueryCondDataTable: DataTable, System.Collections.IEnumerable
		{
			private DataColumn _columnQUERYTYPE;
			private DataColumn _columnCONDTYPE;
			private DataColumn _columnREASON1;
			private DataColumn _columnFKREAL;
			private DataColumn _columnSM;
			private DataColumn _columnGTPRE;
			private DataColumn _columnGTKEY;
			private DataColumn _columnGOODSTYPEKEYDEFID;
			private DataColumn _columnLDES;
			private DataColumn _columnSDES;
			private DataColumn _columnDIRECTKEY;
			private DataColumn _columnKREAL;
			private DataColumn _columnPOS;
			private DataColumn _columnLPOS;
			private DataColumn _columnSUBSTATUS;
			private DataColumn _columnSTATUS;
			private DataColumn _columnVALUECONTROLTYPEKEY;
			private DataColumn _columnEXTENTEDPROPERTY;
			private DataColumn _columnFUSER;
			private DataColumn _columnFDATE;
			private DataColumn _columnLUSER;
			private DataColumn _columnLDATE;
			private DataColumn _columnUID;
			
			internal GTDEFQueryCondDataTable(): base("GTDEFQueryCond")
			{
				this.InitClass();
			}
			
			protected GTDEFQueryCondDataTable(SerializationInfo info, StreamingContext context): base(info, context)
			{
				this.InitVars();
			}
			
			internal GTDEFQueryCondDataTable(DataTable table): base(table.TableName)
			{
				if (table.CaseSensitive != table.DataSet.CaseSensitive)
				{
					this.CaseSensitive = table.CaseSensitive;
				}
				if (table.Locale.ToString() != table.DataSet.Locale.ToString())
				{
					this.Locale = table.Locale;
				}
				if (table.Namespace != table.DataSet.Namespace)
				{
					this.Namespace = table.Namespace;
				}
				this.Prefix = table.Prefix;
				this.MinimumCapacity = table.MinimumCapacity;
				this.DisplayExpression = table.DisplayExpression;
			}
			
			public int Count
			{
				get
				{
					return this.Rows.Count;
				}
			}
			
			public DataColumn QUERYTYPEColumn
			{
				get
				{
					return _columnQUERYTYPE;
				}
			}
			
			public DataColumn CONDTYPEColumn
			{
				get
				{
					return _columnCONDTYPE;
				}
			}
			
			public DataColumn REASON1Column
			{
				get
				{
					return _columnREASON1;
				}
			}
			
			public DataColumn FKREALColumn
			{
				get
				{
					return _columnFKREAL;
				}
			}
			
			public DataColumn SMColumn
			{
				get
				{
					return _columnSM;
				}
			}
			
			public DataColumn GTPREColumn
			{
				get
				{
					return _columnGTPRE;
				}
			}
			
			public DataColumn GTKEYColumn
			{
				get
				{
					return _columnGTKEY;
				}
			}
			
			public DataColumn GOODSTYPEKEYDEFIDColumn
			{
				get
				{
					return _columnGOODSTYPEKEYDEFID;
				}
			}
			
			public DataColumn LDESColumn
			{
				get
				{
					return _columnLDES;
				}
			}
			
			public DataColumn SDESColumn
			{
				get
				{
					return _columnSDES;
				}
			}
			
			public DataColumn DIRECTKEYColumn
			{
				get
				{
					return _columnDIRECTKEY;
				}
			}
			
			public DataColumn KREALColumn
			{
				get
				{
					return _columnKREAL;
				}
			}
			
			public DataColumn POSColumn
			{
				get
				{
					return _columnPOS;
				}
			}
			
			public DataColumn LPOSColumn
			{
				get
				{
					return _columnLPOS;
				}
			}
			
			public DataColumn SUBSTATUSColumn
			{
				get
				{
					return _columnSUBSTATUS;
				}
			}
			
			public DataColumn STATUSColumn
			{
				get
				{
					return _columnSTATUS;
				}
			}
			
			public DataColumn VALUECONTROLTYPEKEYColumn
			{
				get
				{
					return _columnVALUECONTROLTYPEKEY;
				}
			}
			
			public DataColumn EXTENTEDPROPERTYColumn
			{
				get
				{
					return _columnEXTENTEDPROPERTY;
				}
			}
			
			public DataColumn FUSERColumn
			{
				get
				{
					return _columnFUSER;
				}
			}
			
			public DataColumn FDATEColumn
			{
				get
				{
					return _columnFDATE;
				}
			}
			
			public DataColumn LUSERColumn
			{
				get
				{
					return _columnLUSER;
				}
			}
			
			public DataColumn LDATEColumn
			{
				get
				{
					return _columnLDATE;
				}
			}
			
			public DataColumn UIDColumn
			{
				get
				{
					return _columnUID;
				}
			}
			
			public GTDEFQueryCondRow this[int index]
			{
				get
				{
					return ((GTDEFQueryCondRow)(this.Rows[index]));
				}
			}
			
			public event GTDEFQueryCondRowChangeEventHandler GTDEFQueryCondRowChanged;
			public event GTDEFQueryCondRowChangeEventHandler GTDEFQueryCondRowChanging;
			public event GTDEFQueryCondRowChangeEventHandler GTDEFQueryCondRowDeleted;
			public event GTDEFQueryCondRowChangeEventHandler GTDEFQueryCondRowDeleting;
			
			public void AddGTDEFQueryCondRow(GTDEFQueryCondRow row)
			{
				this.Rows.Add(row);
			}
			
			public GTDEFQueryCondRow AddGTDEFQueryCondRow(
					string querytype,
					string condtype,
					string reason1,
					string fkreal,
					string sm,
					string gtpre,
					string gtkey,
					int goodstypekeydefid,
					string ldes,
					string sdes,
					string directkey,
					string kreal,
					int pos,
					int lpos,
					string substatus,
					string status,
					string valuecontroltypekey,
					string extentedproperty,
					string fuser,
					DateTime fdate,
					string luser,
					DateTime ldate,
					string uid
				)
			{
				GTDEFQueryCondRow rowGTDEFQueryCondRow = ((GTDEFQueryCondRow)(this.NewRow()));
				rowGTDEFQueryCondRow["QUERYTYPE"] = querytype;
				rowGTDEFQueryCondRow["CONDTYPE"] = condtype;
				rowGTDEFQueryCondRow["REASON1"] = reason1;
				rowGTDEFQueryCondRow["FKREAL"] = fkreal;
				rowGTDEFQueryCondRow["SM"] = sm;
				rowGTDEFQueryCondRow["GTPRE"] = gtpre;
				rowGTDEFQueryCondRow["GTKEY"] = gtkey;
				rowGTDEFQueryCondRow["GOODSTYPEKEYDEFID"] = goodstypekeydefid;
				rowGTDEFQueryCondRow["LDES"] = ldes;
				rowGTDEFQueryCondRow["SDES"] = sdes;
				rowGTDEFQueryCondRow["DIRECTKEY"] = directkey;
				rowGTDEFQueryCondRow["KREAL"] = kreal;
				rowGTDEFQueryCondRow["POS"] = pos;
				rowGTDEFQueryCondRow["LPOS"] = lpos;
				rowGTDEFQueryCondRow["SUBSTATUS"] = substatus;
				rowGTDEFQueryCondRow["STATUS"] = status;
				rowGTDEFQueryCondRow["VALUECONTROLTYPEKEY"] = valuecontroltypekey;
				rowGTDEFQueryCondRow["EXTENTEDPROPERTY"] = extentedproperty;
				rowGTDEFQueryCondRow["FUSER"] = fuser;
				rowGTDEFQueryCondRow["FDATE"] = fdate;
				rowGTDEFQueryCondRow["LUSER"] = luser;
				rowGTDEFQueryCondRow["LDATE"] = ldate;
				rowGTDEFQueryCondRow["UID"] = uid;
				this.Rows.Add(rowGTDEFQueryCondRow);
				return rowGTDEFQueryCondRow;
			} 
			 
			public IEnumerator GetEnumerator()
			{
				return this.Rows.GetEnumerator();
			}
			
			public override DataTable Clone()
			{
				GTDEFQueryCondDataTable cln = ((GTDEFQueryCondDataTable)(base.Clone()));
				cln.InitVars();
				return cln;
			}
			
			internal void InitVars()
			{
				_columnQUERYTYPE = this.Columns["QUERYTYPE"];
				_columnCONDTYPE = this.Columns["CONDTYPE"];
				_columnREASON1 = this.Columns["REASON1"];
				_columnFKREAL = this.Columns["FKREAL"];
				_columnSM = this.Columns["SM"];
				_columnGTPRE = this.Columns["GTPRE"];
				_columnGTKEY = this.Columns["GTKEY"];
				_columnGOODSTYPEKEYDEFID = this.Columns["GOODSTYPEKEYDEFID"];
				_columnLDES = this.Columns["LDES"];
				_columnSDES = this.Columns["SDES"];
				_columnDIRECTKEY = this.Columns["DIRECTKEY"];
				_columnKREAL = this.Columns["KREAL"];
				_columnPOS = this.Columns["POS"];
				_columnLPOS = this.Columns["LPOS"];
				_columnSUBSTATUS = this.Columns["SUBSTATUS"];
				_columnSTATUS = this.Columns["STATUS"];
				_columnVALUECONTROLTYPEKEY = this.Columns["VALUECONTROLTYPEKEY"];
				_columnEXTENTEDPROPERTY = this.Columns["EXTENTEDPROPERTY"];
				_columnFUSER = this.Columns["FUSER"];
				_columnFDATE = this.Columns["FDATE"];
				_columnLUSER = this.Columns["LUSER"];
				_columnLDATE = this.Columns["LDATE"];
				_columnUID = this.Columns["UID"];
			}
			
			public void InitClass()
			{
				_columnQUERYTYPE = new DataColumn("QUERYTYPE", typeof(string), "", MappingType.Element);
				_columnQUERYTYPE.AllowDBNull = false;
				_columnQUERYTYPE.Caption = "Querytype";
				_columnQUERYTYPE.MaxLength = 50;
				_columnQUERYTYPE.Unique = false;
				_columnQUERYTYPE.DefaultValue = Convert.DBNull;
				_columnQUERYTYPE.ExtendedProperties.Add("IsKey", "false");
				_columnQUERYTYPE.ExtendedProperties.Add("ReadOnly", "false");
				_columnQUERYTYPE.ExtendedProperties.Add("Description", "Querytype");
				_columnQUERYTYPE.ExtendedProperties.Add("Length", "50");
				_columnQUERYTYPE.ExtendedProperties.Add("Decimals", "0");
				_columnQUERYTYPE.ExtendedProperties.Add("AllowDBNulls", "false");
				this.Columns.Add(_columnQUERYTYPE);
				
				_columnCONDTYPE = new DataColumn("CONDTYPE", typeof(string), "", MappingType.Element);
				_columnCONDTYPE.AllowDBNull = false;
				_columnCONDTYPE.Caption = "Condtype";
				_columnCONDTYPE.MaxLength = 250;
				_columnCONDTYPE.Unique = false;
				_columnCONDTYPE.DefaultValue = Convert.DBNull;
				_columnCONDTYPE.ExtendedProperties.Add("IsKey", "false");
				_columnCONDTYPE.ExtendedProperties.Add("ReadOnly", "false");
				_columnCONDTYPE.ExtendedProperties.Add("Description", "Condtype");
				_columnCONDTYPE.ExtendedProperties.Add("Length", "250");
				_columnCONDTYPE.ExtendedProperties.Add("Decimals", "0");
				_columnCONDTYPE.ExtendedProperties.Add("AllowDBNulls", "false");
				this.Columns.Add(_columnCONDTYPE);
				
				_columnREASON1 = new DataColumn("REASON1", typeof(string), "", MappingType.Element);
				_columnREASON1.AllowDBNull = true;
				_columnREASON1.Caption = "Reason 1";
				_columnREASON1.MaxLength = 100;
				_columnREASON1.Unique = false;
				_columnREASON1.DefaultValue = Convert.DBNull;
				_columnREASON1.ExtendedProperties.Add("IsKey", "false");
				_columnREASON1.ExtendedProperties.Add("ReadOnly", "false");
				_columnREASON1.ExtendedProperties.Add("Description", "Reason 1");
				_columnREASON1.ExtendedProperties.Add("Length", "100");
				_columnREASON1.ExtendedProperties.Add("Decimals", "0");
				_columnREASON1.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnREASON1);
				
				_columnFKREAL = new DataColumn("FKREAL", typeof(string), "", MappingType.Element);
				_columnFKREAL.AllowDBNull = true;
				_columnFKREAL.Caption = "Fkreal";
				_columnFKREAL.MaxLength = 100;
				_columnFKREAL.Unique = false;
				_columnFKREAL.DefaultValue = Convert.DBNull;
				_columnFKREAL.ExtendedProperties.Add("IsKey", "false");
				_columnFKREAL.ExtendedProperties.Add("ReadOnly", "false");
				_columnFKREAL.ExtendedProperties.Add("Description", "Fkreal");
				_columnFKREAL.ExtendedProperties.Add("Length", "100");
				_columnFKREAL.ExtendedProperties.Add("Decimals", "0");
				_columnFKREAL.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnFKREAL);
				
				_columnSM = new DataColumn("SM", typeof(string), "", MappingType.Element);
				_columnSM.AllowDBNull = true;
				_columnSM.Caption = "Sm";
				_columnSM.MaxLength = 10;
				_columnSM.Unique = false;
				_columnSM.DefaultValue = Convert.DBNull;
				_columnSM.ExtendedProperties.Add("IsKey", "false");
				_columnSM.ExtendedProperties.Add("ReadOnly", "false");
				_columnSM.ExtendedProperties.Add("Description", "Sm");
				_columnSM.ExtendedProperties.Add("Length", "10");
				_columnSM.ExtendedProperties.Add("Decimals", "0");
				_columnSM.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnSM);
				
				_columnGTPRE = new DataColumn("GTPRE", typeof(string), "", MappingType.Element);
				_columnGTPRE.AllowDBNull = true;
				_columnGTPRE.Caption = "Gtpre";
				_columnGTPRE.MaxLength = 2;
				_columnGTPRE.Unique = false;
				_columnGTPRE.DefaultValue = Convert.DBNull;
				_columnGTPRE.ExtendedProperties.Add("IsKey", "false");
				_columnGTPRE.ExtendedProperties.Add("ReadOnly", "false");
				_columnGTPRE.ExtendedProperties.Add("Description", "Gtpre");
				_columnGTPRE.ExtendedProperties.Add("Length", "2");
				_columnGTPRE.ExtendedProperties.Add("Decimals", "0");
				_columnGTPRE.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnGTPRE);
				
				_columnGTKEY = new DataColumn("GTKEY", typeof(string), "", MappingType.Element);
				_columnGTKEY.AllowDBNull = true;
				_columnGTKEY.Caption = "Gtkey";
				_columnGTKEY.MaxLength = 40;
				_columnGTKEY.Unique = false;
				_columnGTKEY.DefaultValue = Convert.DBNull;
				_columnGTKEY.ExtendedProperties.Add("IsKey", "false");
				_columnGTKEY.ExtendedProperties.Add("ReadOnly", "false");
				_columnGTKEY.ExtendedProperties.Add("Description", "Gtkey");
				_columnGTKEY.ExtendedProperties.Add("Length", "40");
				_columnGTKEY.ExtendedProperties.Add("Decimals", "0");
				_columnGTKEY.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnGTKEY);
				
				_columnGOODSTYPEKEYDEFID = new DataColumn("GOODSTYPEKEYDEFID", typeof(int), "", MappingType.Element);
				_columnGOODSTYPEKEYDEFID.AllowDBNull = true;
				_columnGOODSTYPEKEYDEFID.Caption = "Goodstypekeydefid";
				_columnGOODSTYPEKEYDEFID.Unique = false;
				_columnGOODSTYPEKEYDEFID.DefaultValue = Convert.DBNull;
				_columnGOODSTYPEKEYDEFID.ExtendedProperties.Add("IsKey", "false");
				_columnGOODSTYPEKEYDEFID.ExtendedProperties.Add("ReadOnly", "false");
				_columnGOODSTYPEKEYDEFID.ExtendedProperties.Add("Description", "Goodstypekeydefid");
				_columnGOODSTYPEKEYDEFID.ExtendedProperties.Add("Decimals", "0");
				_columnGOODSTYPEKEYDEFID.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnGOODSTYPEKEYDEFID);
				
				_columnLDES = new DataColumn("LDES", typeof(string), "", MappingType.Element);
				_columnLDES.AllowDBNull = true;
				_columnLDES.Caption = "Ldes";
				_columnLDES.MaxLength = 250;
				_columnLDES.Unique = false;
				_columnLDES.DefaultValue = Convert.DBNull;
				_columnLDES.ExtendedProperties.Add("IsKey", "false");
				_columnLDES.ExtendedProperties.Add("ReadOnly", "false");
				_columnLDES.ExtendedProperties.Add("Description", "Ldes");
				_columnLDES.ExtendedProperties.Add("Length", "250");
				_columnLDES.ExtendedProperties.Add("Decimals", "0");
				_columnLDES.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnLDES);
				
				_columnSDES = new DataColumn("SDES", typeof(string), "", MappingType.Element);
				_columnSDES.AllowDBNull = true;
				_columnSDES.Caption = "Sdes";
				_columnSDES.MaxLength = 100;
				_columnSDES.Unique = false;
				_columnSDES.DefaultValue = Convert.DBNull;
				_columnSDES.ExtendedProperties.Add("IsKey", "false");
				_columnSDES.ExtendedProperties.Add("ReadOnly", "false");
				_columnSDES.ExtendedProperties.Add("Description", "Sdes");
				_columnSDES.ExtendedProperties.Add("Length", "100");
				_columnSDES.ExtendedProperties.Add("Decimals", "0");
				_columnSDES.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnSDES);
				
				_columnDIRECTKEY = new DataColumn("DIRECTKEY", typeof(string), "", MappingType.Element);
				_columnDIRECTKEY.AllowDBNull = true;
				_columnDIRECTKEY.Caption = "Directkey";
				_columnDIRECTKEY.MaxLength = 3;
				_columnDIRECTKEY.Unique = false;
				_columnDIRECTKEY.DefaultValue = Convert.DBNull;
				_columnDIRECTKEY.ExtendedProperties.Add("IsKey", "false");
				_columnDIRECTKEY.ExtendedProperties.Add("ReadOnly", "false");
				_columnDIRECTKEY.ExtendedProperties.Add("Description", "Directkey");
				_columnDIRECTKEY.ExtendedProperties.Add("Length", "3");
				_columnDIRECTKEY.ExtendedProperties.Add("Decimals", "0");
				_columnDIRECTKEY.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnDIRECTKEY);
				
				_columnKREAL = new DataColumn("KREAL", typeof(string), "", MappingType.Element);
				_columnKREAL.AllowDBNull = true;
				_columnKREAL.Caption = "Kreal";
				_columnKREAL.MaxLength = 100;
				_columnKREAL.Unique = false;
				_columnKREAL.DefaultValue = Convert.DBNull;
				_columnKREAL.ExtendedProperties.Add("IsKey", "false");
				_columnKREAL.ExtendedProperties.Add("ReadOnly", "false");
				_columnKREAL.ExtendedProperties.Add("Description", "Kreal");
				_columnKREAL.ExtendedProperties.Add("Length", "100");
				_columnKREAL.ExtendedProperties.Add("Decimals", "0");
				_columnKREAL.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnKREAL);
				
				_columnPOS = new DataColumn("POS", typeof(int), "", MappingType.Element);
				_columnPOS.AllowDBNull = true;
				_columnPOS.Caption = "Pos";
				_columnPOS.Unique = false;
				_columnPOS.DefaultValue = Convert.DBNull;
				_columnPOS.ExtendedProperties.Add("IsKey", "false");
				_columnPOS.ExtendedProperties.Add("ReadOnly", "false");
				_columnPOS.ExtendedProperties.Add("Description", "Pos");
				_columnPOS.ExtendedProperties.Add("Decimals", "0");
				_columnPOS.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnPOS);
				
				_columnLPOS = new DataColumn("LPOS", typeof(int), "", MappingType.Element);
				_columnLPOS.AllowDBNull = true;
				_columnLPOS.Caption = "Lpos";
				_columnLPOS.Unique = false;
				_columnLPOS.DefaultValue = Convert.DBNull;
				_columnLPOS.ExtendedProperties.Add("IsKey", "false");
				_columnLPOS.ExtendedProperties.Add("ReadOnly", "false");
				_columnLPOS.ExtendedProperties.Add("Description", "Lpos");
				_columnLPOS.ExtendedProperties.Add("Decimals", "0");
				_columnLPOS.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnLPOS);
				
				_columnSUBSTATUS = new DataColumn("SUBSTATUS", typeof(string), "", MappingType.Element);
				_columnSUBSTATUS.AllowDBNull = true;
				_columnSUBSTATUS.Caption = "Substatus";
				_columnSUBSTATUS.MaxLength = -1;
				_columnSUBSTATUS.Unique = false;
				_columnSUBSTATUS.DefaultValue = Convert.DBNull;
				_columnSUBSTATUS.ExtendedProperties.Add("IsKey", "false");
				_columnSUBSTATUS.ExtendedProperties.Add("ReadOnly", "false");
				_columnSUBSTATUS.ExtendedProperties.Add("Description", "Substatus");
				_columnSUBSTATUS.ExtendedProperties.Add("Length", "-1");
				_columnSUBSTATUS.ExtendedProperties.Add("Decimals", "0");
				_columnSUBSTATUS.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnSUBSTATUS);
				
				_columnSTATUS = new DataColumn("STATUS", typeof(string), "", MappingType.Element);
				_columnSTATUS.AllowDBNull = true;
				_columnSTATUS.Caption = "Status";
				_columnSTATUS.MaxLength = 50;
				_columnSTATUS.Unique = false;
				_columnSTATUS.DefaultValue = Convert.DBNull;
				_columnSTATUS.ExtendedProperties.Add("IsKey", "false");
				_columnSTATUS.ExtendedProperties.Add("ReadOnly", "false");
				_columnSTATUS.ExtendedProperties.Add("Description", "Status");
				_columnSTATUS.ExtendedProperties.Add("Length", "50");
				_columnSTATUS.ExtendedProperties.Add("Decimals", "0");
				_columnSTATUS.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnSTATUS);
				
				_columnVALUECONTROLTYPEKEY = new DataColumn("VALUECONTROLTYPEKEY", typeof(string), "", MappingType.Element);
				_columnVALUECONTROLTYPEKEY.AllowDBNull = true;
				_columnVALUECONTROLTYPEKEY.Caption = "Valuecontroltypekey";
				_columnVALUECONTROLTYPEKEY.MaxLength = 50;
				_columnVALUECONTROLTYPEKEY.Unique = false;
				_columnVALUECONTROLTYPEKEY.DefaultValue = Convert.DBNull;
				_columnVALUECONTROLTYPEKEY.ExtendedProperties.Add("IsKey", "false");
				_columnVALUECONTROLTYPEKEY.ExtendedProperties.Add("ReadOnly", "false");
				_columnVALUECONTROLTYPEKEY.ExtendedProperties.Add("Description", "Valuecontroltypekey");
				_columnVALUECONTROLTYPEKEY.ExtendedProperties.Add("Length", "50");
				_columnVALUECONTROLTYPEKEY.ExtendedProperties.Add("Decimals", "0");
				_columnVALUECONTROLTYPEKEY.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnVALUECONTROLTYPEKEY);
				
				_columnEXTENTEDPROPERTY = new DataColumn("EXTENTEDPROPERTY", typeof(string), "", MappingType.Element);
				_columnEXTENTEDPROPERTY.AllowDBNull = true;
				_columnEXTENTEDPROPERTY.Caption = "Extentedproperty";
				_columnEXTENTEDPROPERTY.MaxLength = 100;
				_columnEXTENTEDPROPERTY.Unique = false;
				_columnEXTENTEDPROPERTY.DefaultValue = Convert.DBNull;
				_columnEXTENTEDPROPERTY.ExtendedProperties.Add("IsKey", "false");
				_columnEXTENTEDPROPERTY.ExtendedProperties.Add("ReadOnly", "false");
				_columnEXTENTEDPROPERTY.ExtendedProperties.Add("Description", "Extentedproperty");
				_columnEXTENTEDPROPERTY.ExtendedProperties.Add("Length", "100");
				_columnEXTENTEDPROPERTY.ExtendedProperties.Add("Decimals", "0");
				_columnEXTENTEDPROPERTY.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnEXTENTEDPROPERTY);
				
				_columnFUSER = new DataColumn("FUSER", typeof(string), "", MappingType.Element);
				_columnFUSER.AllowDBNull = true;
				_columnFUSER.Caption = "Fuser";
				_columnFUSER.MaxLength = 10;
				_columnFUSER.Unique = false;
				_columnFUSER.DefaultValue = Convert.DBNull;
				_columnFUSER.ExtendedProperties.Add("IsKey", "false");
				_columnFUSER.ExtendedProperties.Add("ReadOnly", "false");
				_columnFUSER.ExtendedProperties.Add("Description", "Fuser");
				_columnFUSER.ExtendedProperties.Add("Length", "10");
				_columnFUSER.ExtendedProperties.Add("Decimals", "0");
				_columnFUSER.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnFUSER);
				
				_columnFDATE = new DataColumn("FDATE", typeof(DateTime), "", MappingType.Element);
				_columnFDATE.AllowDBNull = true;
				_columnFDATE.Caption = "Fdate";
				_columnFDATE.Unique = false;
				_columnFDATE.DefaultValue = Convert.DBNull;
				_columnFDATE.ExtendedProperties.Add("IsKey", "false");
				_columnFDATE.ExtendedProperties.Add("ReadOnly", "false");
				_columnFDATE.ExtendedProperties.Add("Description", "Fdate");
				_columnFDATE.ExtendedProperties.Add("Decimals", "0");
				_columnFDATE.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnFDATE);
				
				_columnLUSER = new DataColumn("LUSER", typeof(string), "", MappingType.Element);
				_columnLUSER.AllowDBNull = true;
				_columnLUSER.Caption = "Luser";
				_columnLUSER.MaxLength = 10;
				_columnLUSER.Unique = false;
				_columnLUSER.DefaultValue = Convert.DBNull;
				_columnLUSER.ExtendedProperties.Add("IsKey", "false");
				_columnLUSER.ExtendedProperties.Add("ReadOnly", "false");
				_columnLUSER.ExtendedProperties.Add("Description", "Luser");
				_columnLUSER.ExtendedProperties.Add("Length", "10");
				_columnLUSER.ExtendedProperties.Add("Decimals", "0");
				_columnLUSER.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnLUSER);
				
				_columnLDATE = new DataColumn("LDATE", typeof(DateTime), "", MappingType.Element);
				_columnLDATE.AllowDBNull = true;
				_columnLDATE.Caption = "Ldate";
				_columnLDATE.Unique = false;
				_columnLDATE.DefaultValue = Convert.DBNull;
				_columnLDATE.ExtendedProperties.Add("IsKey", "false");
				_columnLDATE.ExtendedProperties.Add("ReadOnly", "false");
				_columnLDATE.ExtendedProperties.Add("Description", "Ldate");
				_columnLDATE.ExtendedProperties.Add("Decimals", "0");
				_columnLDATE.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnLDATE);
				
				_columnUID = new DataColumn("UID", typeof(string), "", MappingType.Element);
				_columnUID.AllowDBNull = true;
				_columnUID.Caption = "Uid";
				_columnUID.MaxLength = 256;
				_columnUID.Unique = false;
				_columnUID.DefaultValue = Convert.DBNull;
				_columnUID.ExtendedProperties.Add("IsKey", "false");
				_columnUID.ExtendedProperties.Add("ReadOnly", "false");
				_columnUID.ExtendedProperties.Add("Description", "Uid");
				_columnUID.ExtendedProperties.Add("Length", "256");
				_columnUID.ExtendedProperties.Add("Decimals", "0");
				_columnUID.ExtendedProperties.Add("AllowDBNulls", "true");
				this.Columns.Add(_columnUID);
				
			}
			
			public GTDEFQueryCondRow NewGTDEFQueryCondRow()
			{
				GTDEFQueryCondRow rowGTDEFQueryCondRow = ((GTDEFQueryCondRow)(this.NewRow()));
				return rowGTDEFQueryCondRow;
			}
			
			protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
			{
				return new GTDEFQueryCondRow(builder);
			}
			
			protected override Type GetRowType()
			{
				return typeof(GTDEFQueryCondRow);
			}
			
			protected override void OnRowChanged(DataRowChangeEventArgs e)
			{
				base.OnRowChanged(e);
				if (this.GTDEFQueryCondRowChanged != null)
				{
					this.GTDEFQueryCondRowChanged(this, new GTDEFQueryCondRowChangeEventArgs(((GTDEFQueryCondRow)(e.Row)), e.Action));
				}
			}
			
			protected override void OnRowChanging(DataRowChangeEventArgs e)
			{
				base.OnRowChanging(e);
				if (this.GTDEFQueryCondRowChanging != null)
				{
					this.GTDEFQueryCondRowChanging(this, new GTDEFQueryCondRowChangeEventArgs(((GTDEFQueryCondRow)(e.Row)), e.Action));
				}
			}
			
			protected override void OnRowDeleted(DataRowChangeEventArgs e)
			{
				base.OnRowDeleted(e);
				if (this.GTDEFQueryCondRowDeleted != null)
				{
					this.GTDEFQueryCondRowDeleted(this, new GTDEFQueryCondRowChangeEventArgs(((GTDEFQueryCondRow)(e.Row)), e.Action));
				}
			}
			
			protected override void OnRowDeleting(DataRowChangeEventArgs e)
			{
				base.OnRowDeleting(e);
				if (this.GTDEFQueryCondRowDeleting != null)
				{
					this.GTDEFQueryCondRowDeleting(this, new GTDEFQueryCondRowChangeEventArgs(((GTDEFQueryCondRow)(e.Row)), e.Action));
				}
			}
			
			public void RemoveGTDEFQueryCondRow(GTDEFQueryCondRow row)
			{
				this.Rows.Remove(row);
			}
		}
		
		public class GTDEFQueryCondRow: DataRow
		{
			private GTDEFQueryCondDataTable _tableGTDEFQueryCond;
			
			internal GTDEFQueryCondRow(DataRowBuilder rb): base(rb)
			{
				_tableGTDEFQueryCond = ((GTDEFQueryCondDataTable)(this.Table));
			}
			
			/// <summary>
			/// Gets or sets the value of QUERYTYPE property
			/// </summary>
			public string QUERYTYPE
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.QUERYTYPEColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value QUERYTYPE because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.QUERYTYPEColumn] = value;
				}
			}
			
			public bool IsQUERYTYPENull()
			{
				return this.IsNull(_tableGTDEFQueryCond.QUERYTYPEColumn);
			}
			
			public void SetQUERYTYPENull()
			{
				this[_tableGTDEFQueryCond.QUERYTYPEColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of CONDTYPE property
			/// </summary>
			public string CONDTYPE
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.CONDTYPEColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value CONDTYPE because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.CONDTYPEColumn] = value;
				}
			}
			
			public bool IsCONDTYPENull()
			{
				return this.IsNull(_tableGTDEFQueryCond.CONDTYPEColumn);
			}
			
			public void SetCONDTYPENull()
			{
				this[_tableGTDEFQueryCond.CONDTYPEColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of REASON1 property
			/// </summary>
			public string REASON1
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.REASON1Column]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value REASON1 because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.REASON1Column] = value;
				}
			}
			
			public bool IsREASON1Null()
			{
				return this.IsNull(_tableGTDEFQueryCond.REASON1Column);
			}
			
			public void SetREASON1Null()
			{
				this[_tableGTDEFQueryCond.REASON1Column] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of FKREAL property
			/// </summary>
			public string FKREAL
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.FKREALColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value FKREAL because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.FKREALColumn] = value;
				}
			}
			
			public bool IsFKREALNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.FKREALColumn);
			}
			
			public void SetFKREALNull()
			{
				this[_tableGTDEFQueryCond.FKREALColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of SM property
			/// </summary>
			public string SM
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.SMColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value SM because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.SMColumn] = value;
				}
			}
			
			public bool IsSMNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.SMColumn);
			}
			
			public void SetSMNull()
			{
				this[_tableGTDEFQueryCond.SMColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of GTPRE property
			/// </summary>
			public string GTPRE
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.GTPREColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value GTPRE because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.GTPREColumn] = value;
				}
			}
			
			public bool IsGTPRENull()
			{
				return this.IsNull(_tableGTDEFQueryCond.GTPREColumn);
			}
			
			public void SetGTPRENull()
			{
				this[_tableGTDEFQueryCond.GTPREColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of GTKEY property
			/// </summary>
			public string GTKEY
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.GTKEYColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value GTKEY because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.GTKEYColumn] = value;
				}
			}
			
			public bool IsGTKEYNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.GTKEYColumn);
			}
			
			public void SetGTKEYNull()
			{
				this[_tableGTDEFQueryCond.GTKEYColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of GOODSTYPEKEYDEFID property
			/// </summary>
			public int GOODSTYPEKEYDEFID
			{
				get
				{
					try
					{
						return ((int)(this[_tableGTDEFQueryCond.GOODSTYPEKEYDEFIDColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value GOODSTYPEKEYDEFID because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.GOODSTYPEKEYDEFIDColumn] = value;
				}
			}
			
			public bool IsGOODSTYPEKEYDEFIDNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.GOODSTYPEKEYDEFIDColumn);
			}
			
			public void SetGOODSTYPEKEYDEFIDNull()
			{
				this[_tableGTDEFQueryCond.GOODSTYPEKEYDEFIDColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of LDES property
			/// </summary>
			public string LDES
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.LDESColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value LDES because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.LDESColumn] = value;
				}
			}
			
			public bool IsLDESNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.LDESColumn);
			}
			
			public void SetLDESNull()
			{
				this[_tableGTDEFQueryCond.LDESColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of SDES property
			/// </summary>
			public string SDES
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.SDESColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value SDES because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.SDESColumn] = value;
				}
			}
			
			public bool IsSDESNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.SDESColumn);
			}
			
			public void SetSDESNull()
			{
				this[_tableGTDEFQueryCond.SDESColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of DIRECTKEY property
			/// </summary>
			public string DIRECTKEY
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.DIRECTKEYColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value DIRECTKEY because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.DIRECTKEYColumn] = value;
				}
			}
			
			public bool IsDIRECTKEYNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.DIRECTKEYColumn);
			}
			
			public void SetDIRECTKEYNull()
			{
				this[_tableGTDEFQueryCond.DIRECTKEYColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of KREAL property
			/// </summary>
			public string KREAL
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.KREALColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value KREAL because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.KREALColumn] = value;
				}
			}
			
			public bool IsKREALNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.KREALColumn);
			}
			
			public void SetKREALNull()
			{
				this[_tableGTDEFQueryCond.KREALColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of POS property
			/// </summary>
			public int POS
			{
				get
				{
					try
					{
						return ((int)(this[_tableGTDEFQueryCond.POSColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value POS because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.POSColumn] = value;
				}
			}
			
			public bool IsPOSNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.POSColumn);
			}
			
			public void SetPOSNull()
			{
				this[_tableGTDEFQueryCond.POSColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of LPOS property
			/// </summary>
			public int LPOS
			{
				get
				{
					try
					{
						return ((int)(this[_tableGTDEFQueryCond.LPOSColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value LPOS because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.LPOSColumn] = value;
				}
			}
			
			public bool IsLPOSNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.LPOSColumn);
			}
			
			public void SetLPOSNull()
			{
				this[_tableGTDEFQueryCond.LPOSColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of SUBSTATUS property
			/// </summary>
			public string SUBSTATUS
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.SUBSTATUSColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value SUBSTATUS because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.SUBSTATUSColumn] = value;
				}
			}
			
			public bool IsSUBSTATUSNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.SUBSTATUSColumn);
			}
			
			public void SetSUBSTATUSNull()
			{
				this[_tableGTDEFQueryCond.SUBSTATUSColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of STATUS property
			/// </summary>
			public string STATUS
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.STATUSColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value STATUS because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.STATUSColumn] = value;
				}
			}
			
			public bool IsSTATUSNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.STATUSColumn);
			}
			
			public void SetSTATUSNull()
			{
				this[_tableGTDEFQueryCond.STATUSColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of VALUECONTROLTYPEKEY property
			/// </summary>
			public string VALUECONTROLTYPEKEY
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.VALUECONTROLTYPEKEYColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value VALUECONTROLTYPEKEY because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.VALUECONTROLTYPEKEYColumn] = value;
				}
			}
			
			public bool IsVALUECONTROLTYPEKEYNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.VALUECONTROLTYPEKEYColumn);
			}
			
			public void SetVALUECONTROLTYPEKEYNull()
			{
				this[_tableGTDEFQueryCond.VALUECONTROLTYPEKEYColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of EXTENTEDPROPERTY property
			/// </summary>
			public string EXTENTEDPROPERTY
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.EXTENTEDPROPERTYColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value EXTENTEDPROPERTY because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.EXTENTEDPROPERTYColumn] = value;
				}
			}
			
			public bool IsEXTENTEDPROPERTYNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.EXTENTEDPROPERTYColumn);
			}
			
			public void SetEXTENTEDPROPERTYNull()
			{
				this[_tableGTDEFQueryCond.EXTENTEDPROPERTYColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of FUSER property
			/// </summary>
			public string FUSER
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.FUSERColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value FUSER because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.FUSERColumn] = value;
				}
			}
			
			public bool IsFUSERNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.FUSERColumn);
			}
			
			public void SetFUSERNull()
			{
				this[_tableGTDEFQueryCond.FUSERColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of FDATE property
			/// </summary>
			public DateTime FDATE
			{
				get
				{
					try
					{
						return ((DateTime)(this[_tableGTDEFQueryCond.FDATEColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value FDATE because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.FDATEColumn] = value;
				}
			}
			
			public bool IsFDATENull()
			{
				return this.IsNull(_tableGTDEFQueryCond.FDATEColumn);
			}
			
			public void SetFDATENull()
			{
				this[_tableGTDEFQueryCond.FDATEColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of LUSER property
			/// </summary>
			public string LUSER
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.LUSERColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value LUSER because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.LUSERColumn] = value;
				}
			}
			
			public bool IsLUSERNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.LUSERColumn);
			}
			
			public void SetLUSERNull()
			{
				this[_tableGTDEFQueryCond.LUSERColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of LDATE property
			/// </summary>
			public DateTime LDATE
			{
				get
				{
					try
					{
						return ((DateTime)(this[_tableGTDEFQueryCond.LDATEColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value LDATE because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.LDATEColumn] = value;
				}
			}
			
			public bool IsLDATENull()
			{
				return this.IsNull(_tableGTDEFQueryCond.LDATEColumn);
			}
			
			public void SetLDATENull()
			{
				this[_tableGTDEFQueryCond.LDATEColumn] = Convert.DBNull;
			}
			
			/// <summary>
			/// Gets or sets the value of UID property
			/// </summary>
			public string UID
			{
				get
				{
					try
					{
						return ((string)(this[_tableGTDEFQueryCond.UIDColumn]));
					}
					catch (InvalidCastException exception)
					{
						throw new StrongTypingException("Cannot get value UID because it is DBNull.", exception);
					}
				}
				set
				{
					this[_tableGTDEFQueryCond.UIDColumn] = value;
				}
			}
			
			public bool IsUIDNull()
			{
				return this.IsNull(_tableGTDEFQueryCond.UIDColumn);
			}
			
			public void SetUIDNull()
			{
				this[_tableGTDEFQueryCond.UIDColumn] = Convert.DBNull;
			}
			
		}
		
		public class GTDEFQueryCondRowChangeEventArgs: EventArgs
		{
			private GTDEFQueryCondRow _eventRow;
			private System.Data.DataRowAction _eventAction;
			
			public GTDEFQueryCondRowChangeEventArgs(GTDEFQueryCondRow row, DataRowAction action)
			{
				_eventRow = row;
				_eventAction = action;
			}
			
			public GTDEFQueryCondRow Row
			{
				get
				{
					return _eventRow;
				}
			}
			
			public DataRowAction Action
			{
				get
				{
					return _eventAction;
				}
			}
		}
	}
	#endregion
    }
